# 浮点数的计算
n1 = 0.1
n2 = 0.2

print(n1 + n2)

# 四舍五入
n3 = round(n1 + n2, 2)

print(n3)

import math
# 向上取正

n4 = math.ceil(n1+n2)

print(n4)

# 向下取整
n5 = math.floor(n1+n2)

print(n5)
